# Copyright 2017-2020 NXP
# Released under the MIT license (see COPYING.MIT for the terms)

SUMMARY = "i.MX M7/M4 RTOS images"
SECTION = "app"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://COPYING;md5=983e4c77621568488dd902b27e0c2143"

SRC_URI ?= ""

SRC_URI_mx8mq = "file://IMX8MQ-Mcore-RTOS.tar.gz \
"

SRC_URI_mx8mm = "file://IMX8MM-Mcore-RTOS.tar.gz \
"

SRC_URI_mx8mn = "file://IMX8MN-Mcore-RTOS.tar.gz \
"

SRC_URI_mx8mnlite = "file://IMX8MN-Mcore-RTOS.tar.gz \
"

SRC_URI_mx8mp = "file://IMX8MP-Mcore-RTOS.tar.gz \
"

SCR = "SCR-rtos.txt"

S = "${WORKDIR}/Mcore-RTOS"

inherit deploy

do_install () {
   cp ${WORKDIR}/Mcore-RTOS/*.bin ${D}/
} 

do_deploy () {
   # Install the rtos binaries
   cp ${D}/* ${DEPLOYDIR}/
   chmod 0644 ${DEPLOYDIR}/*
}

addtask deploy after do_install

PACKAGE_ARCH = "${MACHINE_SOCARCH}"

INSANE_SKIP_${PN} += "installed-vs-shipped"